<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <title></title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.5.16/dist/vue.js"></script>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
</head>

<body>
    <div id=app>
       <p>{{msg|msgformat}}</p>
    </div>
    <script type="text/javascript">
         Vue.filter('msgformat',function(msg){
            return msg.replace('发','A');
         })
    var vm = new Vue({
        el: "#app",
        data: {
            
           
            msg:'舒舒服服发发发滚滚滚'
        }
    })
   
    </script>
</body>

</html>